import json
# 某些成语的释义太长了，将长度削减一些，目前修改了：
# 鸡鸣狗盗

with open('idiomDict_modified.json', 'r', encoding='utf8') as file:
    records = json.loads(file.read())
r = []
for k, v in records.items():
    r.append((k, v))
r.sort(key=lambda x: len(x[1]), reverse=True)
for each in r:
    print(each[0], ':')
    print(each[1])
    print(f'len: {len(each[1])}')
    input()
